//
//  IWaveOut.h
//  SoundDemo
//
//  Created by wankang on 2/11/15.
//  Copyright (c) 2015 wankang. All rights reserved.
//

#ifndef SoundDemo_IWaveOut_h
#define SoundDemo_IWaveOut_h

#ifdef ANDROID
typedef short OUTTYPE;
#else
typedef float OUTTYPE;
#endif  // ANDROID

class IWaveOut
{
public:
    virtual int initWave(int nSampleRate, int bits, int channel) = 0;
    virtual void write(const OUTTYPE *buffer, int numElems) = 0;
    virtual void endStream(void) = 0;
};

#endif
